package polymorphism1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86156
 * Date: 2023-04-12
 * Time: 8:53
 */
public class Teacher extends Person{

    public void show(){
        System.out.println("老师的信息为"+getName()+" "+getAge());
    }

    public Teacher() {
    }

    public Teacher(String name, int age) {
        super(name, age);
    }
}
